package com.thoughtworks;

import java.util.ArrayList;

public class ThirtyMinusSix extends Discounts{
    @Override
    public int applyDiscounts(String[] ids, int[] numbers) {
        OriginalPrice originalPrice = new OriginalPrice();
        int money = originalPrice.applyDiscounts(ids, numbers);
        if(money>=30){
            return money-6;
        } else {
            return money;
        }
    }
}
